Skip to main content

Camera2D Class

Description:

  A class for creating Camera2D objects.

__call

Type: Metamethod.

Description:

  Creates a new Camera2D object with the given name.

Signature:

metamethod __call: function(
self: Camera2DClass,
name?: string --[[""]]
): Camera2D

Parameters:

ParameterTypeDescription
namestringThe name of the Camera2D object. Defaults to an empty string.

Returns:

Return TypeDescription
Camera2DA new instance of the Camera2D object.